﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HousingDistribution
{
    public partial class FormHousingAddrErr : Form
    {
        public FormHousingAddrErr()
        {
            InitializeComponent();
        }

        private void FormHousingAddrErr_Load(object sender, EventArgs e)
        {
            //处理界面布局
            this.dataGridView1.Dock = DockStyle.Fill;
            this.dataGridView1.Anchor = ((AnchorStyles)
                                        ((((AnchorStyles.Top
                                          | AnchorStyles.Bottom)
                                          | AnchorStyles.Left)
                                          | AnchorStyles.Right)));

            this.buttonClose.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;


            this.Dock = DockStyle.Fill;
        }

        public void SetDataTable(DataTable dt)
        {
            dataGridView1.DataSource = dt;    
        }

        private void buttonClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
